package com.kukudexin.demo.router;

import com.jfinal.config.Routes;
import com.kukudexin.demo.controller.HelloController;
import com.kukudexin.demo.interceptor.AdminAuthInterceptor;

/**
 * @author: 德鑫
 * @version:
 * @since: 2021/4/26
 */
public class AdminRouter extends Routes {

    @Override
    public void config() {
        // 此处配置 Routes 级别的拦截器，可配置多个
        addInterceptor(new AdminAuthInterceptor());
        add("/a", HelloController.class, "/b");
    }
}
